package com.eric.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author:Eric
 * @date:2021/7/15
 */
@Data
@Accessors(chain = true)
@TableName("t_order")
public class Order {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String orderNo;

    private String accountCode;

    private String productCode;

    private Long total;

    private BigDecimal amount;

    private Long accountId;

    private Long productId;
}
